<!DOCTYPE html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../resources/common.js"></script>
<input type="color" list>
<script>
test(() => {
  var color = document.querySelector('input');
  color.setAttribute('value', '#010101');
  document.body.offsetLeft;
  clickElement(color);
  color.remove();
}, 'Detaching a layout object from a color input should not cause a DCHECK failure.');
</script>
